package com.eamois.action.sys;

import java.util.Collection;

import com.eamois.action.BaseAction;
import com.eamois.domain.sys.CodeSetting;
import com.eamois.service.sys.CodeSettingService;
import com.eamois.util.ServiceFactory;

public class CodeSettingAction extends BaseAction{
	private CodeSettingService codeSettingService;
	public CodeSettingService getCodeSettingService() {
		return codeSettingService;
	}
	public void setCodeSettingService(CodeSettingService codeSettingService) {
		this.codeSettingService = codeSettingService;
	}

	public CodeSettingAction() {
		codeSettingService = (CodeSettingService) ServiceFactory.getInstance().getBean("codeSettingService");
	}
	
	public boolean findCodeSetting (String code){
		return this.getCodeSettingService().findCodeSetting(code);
	} 
	public Collection<CodeSetting> find(String code,boolean isLike){
		return this.getCodeSettingService().find(code,isLike);
	}
	
	public Collection<CodeSetting> findAll(){
		return this.getCodeSettingService().findAll();
	}
	
	public void save(CodeSetting codeSetting) {
		this.getCodeSettingService().save(codeSetting);
	}
	
	public void remove(CodeSetting codeSetting) {
		this.getCodeSettingService().remove(codeSetting);
	}
	
	
}

